<section class="login-section">
    <form nz-form [formGroup]="validateForm" class="login-form" (ngSubmit)="submitForm()">
        <p class="title">用户登录</p>
        <nz-form-item>
            <nz-form-control nzErrorTip="请选择医院!">
                <nz-select formControlName="hospId" nzAllowClear>
                    @for (data of hospList; track data.hospId) {
                    <nz-option [nzValue]="data.hospId" [nzLabel]="data.hospName">
                    </nz-option>
                    }
                </nz-select>
            </nz-form-control>
        </nz-form-item>
        <nz-form-item>
            <nz-form-control nzErrorTip="Please input your username!">
                <nz-input-group nzPrefixIcon="user">
                    <input type="text" nz-input formControlName="userName" placeholder="Username" />
                </nz-input-group>
            </nz-form-control>
        </nz-form-item>
        <nz-form-item>
            <nz-form-control nzErrorTip="Please input your Password!">
                <nz-input-group nzPrefixIcon="lock">
                    <input type="password" nz-input formControlName="password" placeholder="Password" />
                </nz-input-group>
            </nz-form-control>
        </nz-form-item>
        <!-- <div nz-row class="login-form-margin">
            <div nz-col [nzSpan]="12">
                <label nz-checkbox formControlName="remember">
                    <span>Remember me</span>
                </label>
            </div>
            <div nz-col [nzSpan]="12">
                <a class="login-form-forgot">Forgot password</a>
            </div>
        </div> -->
        <div class="buttons">
            <button nz-button class="login-form-button login-form-margin" [nzType]="'primary'">登录</button>
        </div>
    </form>
</section>